#pragma once

#include <QtOpenGL>
#include <QVector>

namespace CAD_CAM
{
	struct MyVertex
	{
			QVector3D position;
			QVector3D color;
			MyVertex(){};
        
			MyVertex(GLfloat x, GLfloat y, GLfloat z, GLfloat r = 1.0f, GLfloat g = 1.0f, GLfloat b = 1.0f) : position(x,y,z), color(r,g,b){};
			MyVertex(const QVector3D & vecPosition, const QVector3D & vecColor = QVector3D(1,0,0)) : position(vecPosition), color(vecColor){};
			MyVertex(GLfloat x, GLfloat y, GLfloat z, QVector3D vecColor) : position(x,y,z), color(vecColor){};
			MyVertex(GLfloat x, GLfloat y, GLfloat z, QColor vecColor) : position(x,y,z) 
			{ 
				color = QVector3D(vecColor.redF(), vecColor.greenF(), vecColor.blueF());
			};
	};
}